package com.dayuanit.space.map;

public class Point {
	private int x;
	private int y;
	//前一个坐标
	private Point prePoint;

	public Point(int x, int y) {
		this.x = x;
		this.y = y;
	}

	public Point(int x, int y, Point prePoint) {
		this.x = x;
		this.y = y;
		this.prePoint = prePoint;
	}

	public void changeX(int step) {
		this.x += step;
	}

	public void changeY(int step) {
		this.y += step;
	}

	public int getX() {
		return this.x;
	}

	public int getY() {
		return this.y;
	}

	public Point getPrePoint() {
		return this.prePoint;
	}

	public void setPrePoint(Point prePoint) {
		this.prePoint = prePoint;
	}
}